﻿using System;
using System.Collections.Generic;
using Common.Model;

namespace Spider.Spider
{
    public class RtnHotListSpider
    {
        public static List<HotList> GetHotList(DateTime dateTime)
        {
            var hotLists = RtnHotList.GetListAll(dateTime.AddDays(-1).ToString("yyyyMMdd"));
            return hotLists;
        }
        
        public static List<HotList> GetYHotList()
        {
            var dateTime = DateTime.Today.AddDays(-1);
            var hotLists = RtnHotList.GetListAll(dateTime.ToString("yyyyMMdd"));
            return hotLists;
        }
    }
}